import java.util.Scanner;


public class Cartas {

	
	public static void main(String[] args) {
		Scanner miScanner = new Scanner(System.in);
		double peso = 0.0;
		//entrada de peso de carta
		System.out.print("Peso (Oz): ");
		String sPeso = miScanner.nextLine();
		//convertir a real
		peso = Double.parseDouble(sPeso);
		double total = 0;;
		//calcular total
		if (peso <= 1){
			total = 0.22;
		}else if (peso >1 && peso < 3){
			total = 0.22+0.17;
		}else {
			total = 0.22 + 0.50;
		}
		System.out.println("Total a Pagar: $"+total);
	}

}
